<!--top-->
<div class="fullwidth bg">
	<div class="i_top">
		<%if request.Cookies("u")("uid")="" then%>
        <div class="i_top_l f_l">
			<span>亲，<a href="/login">请登录</a></span>
			<a href="/reg" class="tl_1">免费注册</a>
			<a href="/user" class="tl_2">会员中心</a>
		</div>
        <%else%>
        <div class="i_top_l f_l">
			<span><a href="/user/personal"><%=request.Cookies("u")("username")%></a>，<a href="/logout">退出</a></span>
			<a href="/user/sms" class="tl_5">站内消息<font class="red">2</font></a>
			<a href="/user" class="tl_6">待处理订单<font class="red">3</font></a>
			<a href="/user" class="tl_2">会员中心</a>
		</div>
        <%end if%>
		
		<div class="i_top_r f_r">
			<a href="/estimates" class="tl_3">试用费用</a>
			<a href="/help" class="tl_4">新手教程</a>
		</div>
	</div>
</div>

<!--header-->
<div class="fullwidth">
	<div id="header">
		<div id="logo">
			<h1><a href="/" title="17代购" alt="17代购"><img src="/images/logo.png" alt="17代购" title="" /></a></h2>
		</div>
		<div id="nav">
			<ul>
				<li><a href="/" alt="" class="na_1">首 页<p>Show Ye</p></a></li>
				<li><a href="/auctions" alt="" class="na_2">yahoo<p>竞 拍</p></a></li>
				<li><a href="/shopping" alt="" class="na_3 cur_3">我 要<p>代　购</p></a></li>
				<li><a href="/transport" alt="" class="na_4 ">我 要<p>转　运</p></a></li>
			</ul>
		</div>
		<div class="right_info ri_nav_3">
			<ul>
				<li><a href=""><img src="/images/qq.jpg" alt="" /></a></li>
				<li><a href=""><img src="/images/ww.jpg" alt="" /></a></li>
				<li class="thulu">今日汇率：6.34990</li>
			</ul>
		</div>
	</div>
	<div class="head hnav_2 hnav_3">
		<div class="nav_2">
			<form action="/shopping/search" method="get" class="nav_2_form_2 nav_3_form_1">
				<div>
					<select name="typeid" >
						<option value="" selected="selected">所有分类</option>
						<%
							  set rslist=server.CreateObject("adodb.recordset")
							  sql="select * from protype where fid=0 order by sort asc,id asc"
							  rslist.open sql,conn,1,3
							  if not rslist.eof then
							  do while not rslist.eof
							  %>
							  <option value="<%=rslist("id")%>"<%if typeid=rslist("id") then response.Write " selected"%>><%=rslist("Title")%></option>
							  <%
                              rslist.movenext
							  loop
							  rslist.close
							  set rslist=nothing
							  end if		 
							  %>
					</select>
				</div>
				<input type="text" name="searchkey" value="<%=searchkey%>" placeholder="请输入中文或日文的关键字搜索已经报价过的商品" class="text" />
				<input type="submit" class="submit" value="搜索" />
			</form>
			<div class="dg_cart">
				<em><a href="/cart"><%Set rsto=conn.execute("select count(id) from cart where uid='"&request.Cookies("u")("uid")&"'") 
		   CartNull=rsto(0)
		   Response.write rsto(0)%></a></em><a href="/cart">购物车</a>
			</div>
		</div>
	</div>
	<div class="head hot_key dg_hot_key">
		<div class="hot_key_con">
			热门关键字: 
            <%
							  set rslist=server.CreateObject("adodb.recordset")
							  sql="select * from [key] where istop=1 and typeid=1 order by id asc"
							  rslist.open sql,conn,1,3
							  if not rslist.eof then
							  do while not rslist.eof
							  %>
							  <a href="/shopping/search?searchkey=<%=server.urlencode(rslist("title"))%>"><%=rslist("title")%></a>，
							  <%
                              rslist.movenext
							  loop
							  rslist.close
							  set rslist=nothing
							  end if		 
							  %>
            
		</div>
	</div>
</div>